import request from '@/utils/request'


export const getCrpList = (page, size, searchText, classId) => {
  return request.get("/crp-list", { params: { page: page, size: size, key: searchText, cid: classId } })
}

export const getCrpById = (id) => {
  return request.get("/crp/" + id)
}

export const updateCrpState = (crpid, state) => {
  return request.post("/crp-update-state", {
    id: crpid,
    state: state
  })
}
